<!DOCTYPE html>
<!--
{% macro pagination(url, page) %}
    <ul class="uk-pagination">
        {% if page.has_previous %}
            <li><a href="{{ url }}{{ page.page_index - 1 }}"><i class="uk-icon-angle-double-left"></i></a></li>
        {% else %}
            <li class="uk-disabled"><span><i class="uk-icon-angle-double-left"></i></span></li>
        {% endif %}
            <li class="uk-active"><span>{{ page.page_index }}</span></li>
        {% if page.has_next %}
            <li><a href="{{ url }}{{ page.page_index + 1 }}"><i class="uk-icon-angle-double-right"></i></a></li>
        {% else %}
            <li class="uk-disabled"><span><i class="uk-icon-angle-double-right"></i></span></li>
        {% endif %}
    </ul>
{% endmacro %}
-->
<html>
<head>
    <meta charset="utf-8" />
    {% block meta %}<!-- block meta  -->{% endblock %}
    <title>{% block title %} ? {% endblock %}</title>
    <link rel="stylesheet" href="/static/css/uikit.min.css">
    <link rel="stylesheet" href="/static/css/uikit-rtl.min.css">
    <link rel="stylesheet" href="/static/css/awesome.css" />
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/sha1.min.js"></script>
    <script src="/static/js/uikit.min.js"></script>
    <script src="/static/js/uikit-icons.min.js"></script>
    <script src="/static/js/sticky.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
    <script src="/static/js/awesome.js"></script>
    <style type="text/css">
    #nava {color:#e4c23a;}
    #nava:hover {color:#114774;}
    </style>
    {% block beforehead %}<!-- before head  -->{% endblock %}
</head>
<body>
    <div style="background: #5a8ce7">
        <div class="uk-container uk-container-expand uk-margin-samll-top uk-margin-small-bottom">
            <nav class="uk-navbar uk-navbar-expand" style="background: #5a8ce7">
                <div class="uk-navbar-left">
                    <a class="uk-navbar-brand" style="font-size: 24px">青貉</a>
                    <ul class="uk-navbar-nav">
                        <li><a href="/" id="nava">日志</a></li>
                        <li><a href="http://baidu.com" id="nava">百度</a></li>
                    </ul>
                 </div>
                 <div class="uk-navbar-right">
                    <ul class="uk-navbar-nav">
                    {% if __user__ %}
                        <li class="uk-parent" data-uk-dropdown>
                            <a href="#" id="nava">{{ __user__.name }}</a>
                            <div class="uk-dropdown uk-dropdown-navbar">
                                <ul class="uk-nav uk-nav-navbar">
                                    <li><a href="/signout" id="nava">退出</a></li>
                                </ul>
                            </div>
                        </li>
                    {% else %}
                        <li><a href="/login" id="nava">登陆</a></li>
                        <li><a href="/register" id="nava">注册</a></li>
                    {% endif %}
                    </ul>
                </div>
            </nav>
        </div>
    </div>
    <div class="uk-container uk-container-center">
        <div class="uk-grid-medium" uk-grid>
            <!-- content -->
            {% block content %}
            {% endblock %}
            <!-- // content -->
        </div>
    </div>

    <div class="uk-margin-large-top" style="background-color:#3369aa;">
        <div class="uk-container uk-container-center uk-text-center">
            <div class="uk-panel uk-margin-top uk-margin-bottom">
                <p>
                    <a target="_blank" href="http://weibo.com/liaoxuefeng" class="uk-icon-button uk-icon-weibo"></a>
                    <a target="_blank" href="https://github.com/michaelliao" class="uk-icon-button uk-icon-github"></a>
                    <a target="_blank" href="http://www.linkedin.com/in/liaoxuefeng" class="uk-icon-button uk-icon-linkedin-square"></a>
                    <a target="_blank" href="https://twitter.com/liaoxuefeng" class="uk-icon-button uk-icon-twitter"></a>
                </p>
                <p>Powered by <a href="http://awesome.liaoxuefeng.com">青貉</a>. Copyright &copy; 2021. [<a href="/manage/" target="_blank">后台管理</a>]</p>
                <p><a href="http://www.liaoxuefeng.com/" target="_blank">www.liaoxuefeng.com</a>. All rights reserved.</p>
                <a target="_blank" href="http://www.w3.org/TR/html5/"><i class="uk-icon-html5" style="font-size:32px; color: #444;"></i></a>
            </div>
        </div>
    </div>
</body>
</html>
